package com.lanhe.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lanhe.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 会员订单表(LhOrdersLevel)表实体类
 *
 * @author zhanggl
 * @since 2024-01-04 22:27:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("lh_orders_level")
public class LhOrdersLevel {

	/**
	 * ID
	 */
    @TableId(type = IdType.AUTO)
	@Excel(name = "次序")
	private Long orderId;

	/**
	 * 订单编号
	 */
	@Excel(name = "订单编号")
	private String orderNumber;

	/**
	 * 订单类型，1=购买，2=续费
	 */
	@Excel(name = "订单类型",cellType = Excel.ColumnType.STRING,readConverterExp = "1=购买,2=续费")
	private Integer orderType;

	/**
	 * 等级ID
	 */
	@Excel(name = "等级ID")
	private Long levelId;

	/**
	 * 等级标题
	 */
	@Excel(name = "等级标题")
	private String title;

	/**
	 * 金额
	 */
	@Excel(name = "金额")
	private Integer price;

	/**
	 * 积分
	 */
	@Excel(name = "积分")
	private Integer score;

	/**
	 * 支付平台：0未知，1线下支付，2微信支付，3支付宝,4积分
	 */
	@Excel(name = "支付平台",cellType = Excel.ColumnType.STRING,readConverterExp = "0=未知,1=线下支付,2=微信支付,3=支付宝,4=积分")
	private Integer platform;

	/**
	 * 采购类型，1=金币，2=积分
	 */
	@Excel(name = "采购类型",cellType = Excel.ColumnType.STRING,readConverterExp = "1=金币,2=积分,3=联系商务")
	private Integer purchaseType;

	/**
	 * 是否付款：0未付款，1已付款
	 */
	@Excel(name = "是否付款",cellType = Excel.ColumnType.STRING,readConverterExp = "0=未付款,1=已付款")
	private Integer payed;

	/**
	 * 付款时间
	 */
	@Excel(name = "付款时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date payedTime;

	/**
	 * 会员ID
	 */
	private Long memberId;

	/**
	 * 备注
	 */
	private String reason;

	/**
	 * 会员开始时间
	 */
	@Excel(name = "会员开始时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date vipStartTime;

	/**
	 * 会员结束时间
	 */
	@Excel(name = "会员结束时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date vipEndTime;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;

	@TableField(exist = false)
	private Date beginTime;

	@TableField(exist = false)
	private Date endTime;

	@TableField(exist = false)
	@Excel(name = "用户名称")
	private String userName;

	@TableField(exist = false)
	private String teacherId;

}

